﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrammarGenericSolver.Model;

namespace GrammarGenericSolver.ADS
{
    /// <summary>
    /// Estrutura de dados responsável pela árvore de derivação.
    /// </summary>
    public class DerivationTree
    {
        private Root _mainRoot;
        private Dictionary<string, Root> _rootList;

        private Grammar _derivationGrammar;
        /// <summary>
        /// Gramática correspondente da árvore de derivação.
        /// </summary>
        public Grammar DerivationGrammar
        {
            get { return _derivationGrammar; }
            set { _derivationGrammar = value; }
        }

        public DerivationTree(Grammar derivationGrammar)
        {
            this.DerivationGrammar = derivationGrammar;

            GenerateTree();
        }

        private void GenerateTree()
        {
        }
    }
}
